package com.gz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName t_item
 */
@TableName(value ="t_item")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Item {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long bookId;

    private String bookName;

    private Double price;

    private Integer buyCount;

    private Double sumPrice;

    private String orderId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Integer state;
}